<template>
	<view class="new-work-order padding">
		<web-view :src="url" @message="getMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				url: "",
				params: '',
				token: uni.getStorageSync('token')
			}
		},
		onLoad(e) {
			console.log(e)
			this.params = e.params
		},
		mounted() {
			this.url = 'http://all.roywise.cn:8081:8099/?token=' + this.token + '&param=' + this.params
			console.log(this.url)
		},
		methods: {
			getMessage (e) {
				uni.navigateBack(-1)
			}
		}
	}
</script>

<style>
	.new-work-order {
		  overflow: scroll;
		  position: fixed;
		  background-color: #fff;
		  height: 100vh;
		  width: 100%;
		  }
</style>